import tokenStore from "../utils/tokenStore";
export const feedback = async ({
	content,
	images
}) => {

	return await new Promise(function(resolve, reject) {

		uni.request({
			method: 'POST',
			url: 'https://zm.quya.vip/api/v1/feedbackSubmission',
			header: {
				'Authorization': 'Bearer ' + tokenStore.get()
			},
			data: {
				content,
				images
			},
			success: (res) => {
				console.log(res)
				if (res.data) {
					resolve(res.data)
				}
			}
		});
	});

}